import request from "@/utils/request"
export default {
// /resources/carousel  获取轮播图数据
    getCarousel(data={}){
        // return request.post("/resources/carousel", data)
        return request({
            url: "/api/resources/carousel",
            method: "POST",
            data: data
        })
    },

// /product/getPromoProduct  获取各类商品数据
    getPromoProduct(data={}){
        //data = {"categoryName":"电视机"}
        return request({
            url: "/api/product/getPromoProduct",
            method: "POST",
            data: data
        })
    },

// /product/getHotProduct 获取热门内容
    getHotProduct(data={}){
        //data = categoryName: ["电视机", "空调", "洗衣机"]
        return request({
            url: "/api/product/getHotProduct",
            method: "POST",
            data: data
        })
    },
}
